package cnpm02.j2ee.group3.logic.dao.impl;

import javax.ejb.Local;

import cnpm02.j2ee.group3.logic.dao.generic.AbstractEntityDao;
import cnpm02.j2ee.group3.model.Person;

@Local
public interface PersonDao extends AbstractEntityDao<Person> {
	final String SELECT_ALL_QUERY = "from Person";
	final String SELECT_PERSON_BY_LOGIN = "from Person p where p.login = :login";
	/**
	 * Find person by login
	 * @param login {@link String}
	 * @return found persons {@link Person}. If not found, return empty.
	 * */
	Person find(String login);
}
